package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * Author: Zheng
 * Date:   2024/2/29  9:02
 * Package：com.sky.task
 * Description：
 * Version：1.0
 */
@Component
@Slf4j
public class DemoTask {

    //@Scheduled(cron = "0/5 * * * * ?")
    //@Scheduled(cron = "0 0/2 * * * ?")
    public void printLog(){
        log.info("执行定时任务：{}", LocalDateTime.now());
    }
}
